<template>
    <div class="body">
        <div class="header">
            <img src="@/assets/img/profile/logo.jpg" alt="">
            <div class="nickname">xxf2</div>
        </div>

        <div class="content">
            <ul>
                <li>
                    <div>8</div>
                    <div>收藏的店铺</div>
                </li>
                <li>
                    <div>14</div>
                    <div>收藏的商品</div>
                </li>
                <li>
                    <div>18</div>
                    <div>关注的商品</div>
                </li>
                <li>
                    <div>84</div>
                    <div>足迹</div>
                </li>
                
            </ul>
        </div>
        <div class="order">
            <div class="myodar">我的订单</div>
            <div class="orderlists">
                <ul>
                    <li>
                        <img src="@/assets/img/profile/pay.png" alt="">
                        <div>待付款</div>
                    </li>
                    <li>
                        <img src="@/assets/img/profile/getgoods.png" alt="">
                        <div>待收货</div>
                    </li>
                    <li>
                        <img src="@/assets/img/profile/payback.png" alt="">
                        <div>退货/退款</div>
                    </li>
                    <li>
                        <img src="@/assets/img/profile/orders.png" alt="">
                        <div>全部订单</div>
                    </li>
                </ul>
            </div>
        </div>
        <div class="footer">
            <div class="contact">联系客服</div>
            <div class="nologin" @click="nologin">退出登录</div>
        </div>
    </div>
</template>

<script>
export default {
    methods: {
        nologin(){
            this.$emit('nologin')
        }
    },
}
</script>

<style scoped>
.header {
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: deeppink;
}
.header img{
    width: 60px;
    height: 60px;
    border-radius: 50%;
}
.nickname{
    margin-top: 6px;
    color: #fff;
}
.content{
    box-sizing: border-box;
    border-radius: 5px;
    width:90%;
    margin: 0 auto;
    height: 60px;
    font-size: 14px;
    background-color:rgb(248, 247, 247);
    margin-top: -10px;
}
.content ul{
    display: flex;
    justify-content:space-around;
    align-items: center;
    height: 60px;

}
.content ul li{
    display: flex;
    align-items: center;
    flex-direction: column;
}
.order{
    margin: 10px auto 0; 
    width: 90%;
    font-size: 14px;
    box-sizing: border-box;
    height: 80px;
    background-color:rgb(248, 247, 247);

}
.myodar{
    padding: 8px;
    margin-top: 14px;
    margin-left: 4px;
    margin-bottom: 4px;
    border-bottom: 1px solid #ccc;
}
.orderlists img{
    width: 20px;
    height: 20px;
    margin-bottom: 6px;
} 
.orderlists ul{
    display: flex;
    justify-content:space-around
   
}
.orderlists ul li{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content:space-around;
}
.footer{
    width: 90%;
    box-sizing: border-box;
    margin: 10px auto 0px;
    background-color:rgb(248, 247, 247);
    text-align: center;
}
.contact{
    padding: 6px;
    background-color: green;
    color:#fff;
    font-size: 16px;
}
.nologin{
    padding: 6px;
    background-color: #ccc;
    margin-top: 10px;
    font-size: 16px;
    color: red;
}
</style>